﻿using System;
using ET;

namespace Marx
{
    public class Startup : IMarxStartup
    {
        public void UseDLL(IConfiguration app)
        {
            app.UseDLL(typeof(Startup).Assembly);
        }

        public void Configure(IConfiguration app, IMarxEnvironment env)
        {
            app.UseTcp();
            app.UseHeartbeatCheck(2000, 10000);
        }
    }

    class Program
    {
        static void Main(string[] args)
        {
            MarxHostBuilder.Build().UseStartup<Startup>(args).Run();
        }
    }
}
